<!DOCTYPE html>

<html class="no-js">

<head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <title></title>
  <meta name="description" content="" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <script src="https://cdn.staticfile.org/vue/2.5.17/vue.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/element-ui/2.4.11/index.js"></script>
  <script src="https://cdn.staticfile.org/echarts/4.2.1-rc1/echarts.min.js"></script>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/element-ui/2.4.11/theme-chalk/index.css" />
  <link rel="stylesheet" href="../../../lib/index.css" />
  <!-- <link rel="stylesheet" href="../cdn/codemirror/codemirror.css" /> -->
  <!-- <link rel="stylesheet" href="../cdn/codemirror/theme/rubyblue.css" /> -->
  <!-- <link rel="stylesheet" href="../cdn/codemirror/addon/lint/lint.css" /> -->
  <!-- <script src="../cdn/codemirror/codemirror.js"></script> -->
  <!-- <script src="../cdn/codemirror/addon/lint/lint.js"></script> -->
  <!-- <script src="../cdn/codemirror/mode/javascript/javascript.js"></script> -->
  <script src="../../../lib/avue.js"></script>

</head>

<body>
  <div id="app">
    <avue-echart-line width="option.width" :height="option.height" :option="option" :data="data"></avue-echart-line>
  </div>
</body>
<script>
  new Vue({
    el: '#app',
    data() {
      return {
        data: {
          categories: [
            "苹果",
            "三星",
            "华为",
            "oppo",
            "vivo",
            "小米"
          ],
          series: [{
            name: "手机品牌",
            data: [
              1000879,
              678564,
              897744,
              439087,
              478900,
              390877
            ]
          }, {
            name: "其他手机品牌",
            data: [
              2000879,
              678564,
              797744,
              639087,
              778900,
              590877
            ]
          }]
        },
        option: {
          titleShow: true,
          width: 1200,
          height: 600,
          title: '手机大比拼',
          smooth: true, //是否顺滑
          areaStyle: false, //是否面积
        }
      }
    }
  })

</script>

</html>